import request from '@/utils/request'

const login = (data: any) => {
    return request({
        url: "/login",
        method: "post",
        data: data
    })
}

const logout = () => {
    return request({
        url: "/logout",
        method: "get"
    })
}

const getInfo = () => {
    return request({
        url: "/getInfo",
        method: "get"
    })
}


export { login, getInfo, logout }
